<?php /* Smarty version Smarty-3.1.6, created on 2018-05-01 22:14:41
         compiled from "D:/phpStudy/PHPTutorial/WWW/myshop/Admin/View\GoodsOrder\listtable.html" */ ?>
<?php /*%%SmartyHeaderCode:10883167305ae85bd4db0b95-41681184%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b05041f7183ac88874f798d6e75388e36d20a21a' => 
    array (
      0 => 'D:/phpStudy/PHPTutorial/WWW/myshop/Admin/View\\GoodsOrder\\listtable.html',
      1 => 1525183640,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10883167305ae85bd4db0b95-41681184',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5ae85bd4ed876',
  'variables' => 
  array (
    'info' => 0,
    'v' => 0,
    'total' => 0,
    'pagelist' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5ae85bd4ed876')) {function content_5ae85bd4ed876($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<?php echo @ADMIN_CSS_PATH;?>
style.css" rel="stylesheet" type="text/css" />
<!--<link href="<?php echo @CSS_PATH;?>
bootstrap.min.css" rel="stylesheet" type="text/css" />-->
<link href="css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo @ADMIN_JS_PATH;?>
jquery.js"></script>
<script type="text/javascript" src="js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="js/select-ui.min.js"></script>
<script type="text/javascript" src="editor/kindeditor.js"></script>

<script type="text/javascript">
    KE.show({
        id : 'content7',
        cssPath : './index.css'
    });
  </script>
  
<script type="text/javascript">
$(document).ready(function() {
	$(".select3").uedSelect({
		width : 100
	});
});
function setf(s){
	var thisurl="<?php echo @__CONTROLLER__;?>
/assigngoods";
	var wlnum=$("#wlnum"+s.dataset.href).val();
	var wltype=$("#wltype"+s.dataset.href).val();
	$.post(thisurl,{ "id":s.dataset.href,"deliverynum":wlnum,"deliverytype":wltype},function(msg){
	//alert(msg);
	if(msg=="<i>发货</i>"){
		$("#wlnum"+s.dataset.href).attr("value","");
		$("#wltype"+s.dataset.href).attr("value","");
	}
	s.innerHTML=msg;
	$(this).append(msg);
	//alert(msg);
});
}
function del(){ 
if(!confirm("确认要删除？")){ 
window.event.returnValue = false; 
} 
}

</script>
</head>

<body>

	
    
    <div class="formbody">
    
    
    <div id="usual1" class="usual"> 
    
  	<div id="tab2" class="tabson">
    
    
    <table class="imgtable">
    
    <thead>
    <tr>
    <th>订单编号</th>
    <th>商品编号</th>
    <th>商品名称</th>
    <th width="100px;">商品图片</th>
    <th>属性</th>
    <th>买家编号</th>
    <th>买家名称</th>
    <th>快递公司</th>
    <th>快递单号</th>
    <th>数量</th>
    <th>时间</th>
    <th style="text-align: center;">操作</th>
    </tr>
    </thead>
    
    <tbody>
    <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['info']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
    <tr>
    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['igoodsid'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['igoodsname'];?>
</td>
    <td class="imgtd"><img src="<?php echo @SITE_URL;?>
<?php echo $_smarty_tpl->tpl_vars['v']->value['picture'];?>
" style="width: 80px;height: 60px;"/></td>
    <td><?php if ($_smarty_tpl->tpl_vars['v']->value['isvirtual']==0){?>实体商品<?php }else{ ?>虚拟商品<?php }?></td>
    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['buyerid'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['buyername'];?>
</td>
    <td><input name="wltype<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" id="wltype<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['deliverytype'];?>
" type="text" style="width:50px;height:32px;border:solid 1px #a7b5bc; text-indent:10px;" /></td>
    <td><input name="wlnum<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" id="wlnum<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['deliverynum'];?>
" type="text" style="width:100px;height:32px;border:solid 1px #a7b5bc; text-indent:10px;" /></td>
    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['count'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['v']->value['buytime'];?>
</td>
    <td>
    <a >物流</a>&nbsp;&nbsp;&nbsp;
    <a class="isok" data-href="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"  onclick="setf(this)"><?php if ($_smarty_tpl->tpl_vars['v']->value['isok']==1){?><font color="green">已发货</font><?php }elseif($_smarty_tpl->tpl_vars['v']->value['isok']==2){?>已完成<?php }else{ ?><i>发货</i><?php }?></a>&nbsp;&nbsp;&nbsp;
    <a href="<?php echo @__CONTROLLER__;?>
/deleteorder/id/<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"  onclick="return del()"> 删除</a>
    </td>
    </tr>
    <?php } ?>
    </tbody>
    </table>
    
    <div class="pagin">
    	<div class="message">共<i class="blue"><?php echo $_smarty_tpl->tpl_vars['total']->value;?>
</i>条记录，每页显示&nbsp;<i class="blue">10&nbsp;</i>条</div>
        <ul class="paginList">
        	<?php echo $_smarty_tpl->tpl_vars['pagelist']->value;?>

        </ul>
    </div>
    
    <!--<div>
    	<iframe name="kuaidi100" src="https://www.kuaidi100.com/frame/index.html" width="960" height="880" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
	</div>-->
    
    </div>  
       
	</div> 
	
 
	<script type="text/javascript"> 
      $("#usual1 ul").idTabs(); 
    </script>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
    </div>

</body>
</html>
<?php }} ?>